﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebsiteClient.Models
{
    public class Event
    {
        [Key]
        public int EventId { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public string Address { get; set; }

        public int ZipCode { get; set; }

        public string City { get; set; }

        public string Date { get; set; }

        public string Time { get; set; }

        public int Price { get; set; }

        public List<Registration> Registration { get; set; }

        [ForeignKey("ApplicationUser")]
        public string ApplicationUser_Id { get; set; }

        public virtual ApplicationUser ApplicationUser { get; set; }
    }
}